package site.wtcc.originalfavor.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EndpointInfo {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private Integer type;

    private String code;

    private String name;

    private String provinceCode;

    private String cityCode;

    private String areaCode;

    private String address;

    private String longitude;

    private String latitude;

    private String geoHash;

    private String contactName;

    private String contactPhone;

    private String officePhone;

    private String remark;

    private Integer status;

    private String brandCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastUpdateTime;

    private String lastUpdateBy;

}
